Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update View Component metric building #2907

Merged
merged 4 commits into from
Oct 11, 2024
Merged

Conversation

hannahramadan
Copy link
Contributor

View Component removed private method .identifier in v3.16.0, which is how the library used to identify components for instrumentation, and is what our was based off of as well. View Component now uses source_location. This PR updates our instrumentation to do the same and adds error handling in the case that the methods we rely on to build metric names are changed. source_location is a confirmed compatible call with the earliest version of View Component available on RubyGems, v1.16.0.

closes #2874

Copy link

SimpleCov Report

Coverage Threshold
Line 93.78% 93%
Branch 69.65% 50%

Copy link
Contributor

@kaylareopelle kaylareopelle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! Would you mind adding a changelog entry?

fallwith
fallwith previously approved these changes Oct 10, 2024
kaylareopelle
kaylareopelle previously approved these changes Oct 10, 2024
CHANGELOG.md Show resolved Hide resolved
Co-authored-by: Kayla Reopelle <87386821+kaylareopelle@users.noreply.github.com>
tannalynn
tannalynn previously approved these changes Oct 11, 2024
@hannahramadan hannahramadan merged commit 52bb44e into dev Oct 11, 2024
32 checks passed
@hannahramadan hannahramadan deleted the update_vc_identifier branch October 11, 2024 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

ViewComponent: evaluate the way that we obtain the component class identifier
4 participants